package com.zz.service.impl;

import com.zz.pojo.User;
import com.zz.service.UserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Value("${personName}")
    private String name;


    @Override
    public User findUserById(Integer id) {
        User user = new User();
        user.setId(id);
        user.setName(name);
        user.setSex("男");
        return user;
    }
}
